/**
*附件管理
*/
import request from '@/utils/request'
// 列表
export function fetchList(query) {
  return request({
    url: '/admin/attachment/search',
    method: 'get',
    params: query
  })
}

// 添加
export function add() {
  return request({
    url: '/admin/attachment/add',
    method: 'get'
  })
}

// 编辑
export function edit(ids) {
  return request({
    url: '/admin/attachment/edit',
    method: 'post',
    data: {
      id: ids
    }
  })
}

// 删除
export function del(ids) {
  return request({
    url: '/admin/attachment/del',
    method: 'post',
    data: {
      ids
    }
  })
}
